package com.cw.DesignModel23.Ceational.BuilderPattern.builder2;

public class Main {
    public static void main(String[] args) {
        // 使用链式调用 , 一行代码创建实例对象
        Student student = new Student.StudentBuilder()
                .buildName("小明")
                .buildAge("12")
                .buildNumber("s1")
                .buildAddress("学院路")
                .buildSchool("第一小学")
                .build();

        System.out.println(student);
    }
}
